
#include "precomp.h"
#include "Display.h"

using namespace clan;

RL::Engine::Display::Display(const std::string &title)
{
	ScreenInfo screen_info;
	int primary_screen_index = 0;
	std::vector<Rect> screen_boxes = screen_info.get_screen_geometries(primary_screen_index);

	DisplayWindowDescription desc;
	desc.set_title(title);
	desc.set_size(
		Size(	 screen_boxes[primary_screen_index].get_width() * 90 / 100, 
				(screen_boxes[primary_screen_index].get_height() - 50) * 90 / 100), 
		true);
	desc.set_allow_resize(true);

	_canvas = Canvas(desc);
}

RL::Engine::Display::~Display()
{
}